package com.zzyl.common.constant;

/**
 * 缓存的key 常量
 * 
 * @author ruoyi
 */
public class CacheConstants
{

    /**
     * 全部护理等级 redis key
     */
    public static final String NURSING_LEVEL_LIST_KEY = "nursing:level:list";


    /**
     *  健康评估报告文本 redis key
     */
    public static final String HEALTH_ASSESSMENT_TEXT_KEY = "health:assessment:text";

    /**
     * 按天统计查询指标数据
     */
    public static final String IOT_DEVICE_DATA_LIST_BY_DAY = "iot:device:data:day:{}:{}:{}:{}";


    /**
     * 沉默周期 redis key 前缀
     */
    public static final String IOT_ALERT_SILENT_PREFIX = "iot:alert:silent:{}:{}:{}";


    /**
     * 报警次数 redis key 前缀
     */
    public static final String IOT_ALERT_COUNT_PREFIX = "iot:alert:count:{}:{}:{}";

    /**
     *  产品列表 redis key
     */
    public static final String IOT_PRODUCT_LIST = "iot:product:list";

    /**
     *  设备上报的最后数据 redis key
     */
    public static final String IOT_DEVICE_LAST_DATA = "iot:device:last:data";


    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";
}
